<?php
/* 定义属性 */
define("CUCONFIG","./config");
define("CUCLASS","./class");
include CUCONFIG . '/set.php';
/* 执行页面 */
/* 在下面的瀏覽器生成的網頁中的“tabcontent”塊div默認要隱藏，因為由java控制的分頁可以把預設的隱藏的div顯示出來 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%;">

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo $c?></title>
	<!-- 下面導入css -->
	<link href="./css/main.css" rel="stylesheet" type="text/css" />
	<link href="./css/login.css" rel="stylesheet" type="text/css" />
	<link href="./css/pluin_xiadan.css" rel="stylesheet" type="text/css" />
	<link href="./css/pluin_gdcl.css" rel="stylesheet" type="text/css" />
	<link href="./css/pluin_qccl.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="./esiui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="./esiui/themes/icon.css">
	<link rel="stylesheet" type="text/css" media="screen,projection" href="./css/pluin_finance_style.css" />
	<script type="text/javascript" src="./temp/JS/jquery-1.11.0.min.js"></script>
	<script type="text/javascript" src="./esiui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="./esiui/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="./temp/JS/json2.js"></script>
	<script type="text/javascript" src="./temp/JS/main.js"></script>
	<script type="text/javascript">
var tablink_idname = "tablink"
var tabcount = 7
var loadtabs = new Array("1","0")  
function easytabs(active) {
	for (i=1; i <= tabcount; i++){
			document.getElementById(tablink_idname+i).className='tab'+i;
	}
	document.getElementById(tablink_idname+active).className='tab'+active+' tabactive';
}
//Swich EasyTabs region end
//Onload program region begin
window.onload=function(){
getlnf('<?php echo $tab ?>')
// loadskin()
var menucount=loadtabs.length; 
}
//Onload program region end
</script>
</head>
<body id="mmb">

	<?php 
if (!is_selog()) //检测到没有登录的时候，就要显示登录页面
    echo '<script type="text/javascript">location.href = "../index.php"</script>';
	//include 'cu_login.php';
?>
<div class="easyui-layout" style="width:100%;height:100%;magrin:0px;padding:0px;" id="mainlayout">
		<div data-options="region:'north'" style="height:55px">
			<div id="navigation" class="navigation">
					<div class="topnavb">
						<img src="./image/icon/u=3599177796,1814824424&fm=23&gp=0.jpg" width="48" height="48" class="topstartbutton" onClick="MouseOnStart()">
						<div class="startmenu"></div>
					</div>
					<?php echo mainaction::gettoptpl(); ?></div>
		</div>
		<div data-options="region:'south',split:false" style="height:30px;">
			<div class="drop_bar" colspan="3">114客服组综合工作流系统（版本G3，版权：周毅豪）,已采用最新Ajax技术！</div>
		</div>
		<div data-options="region:'east',split:true" title="状态" style="width:100px;"></div>
		<div data-options="region:'west',split:false" style="width:195px;">
			<div class="lnn">
							<img src="./image/icon/fld.png" width="64" height="64"  onclick="getlnf()"/>
							<img src="./image/icon/ifo.png" width="64" height="64" />
							<img src="./image/icon/pho.png" width="64" height="64" onclick="getxiaojie()" />
						</div>
						<div class="lnt">功能列表</div>
						<div class="lnm">请选择项目</div>
		</div>
		<div data-options="region:'center',title:'<?php echo mainaction::trtabname($tab) ?>',iconCls:'icon-ok'">
			<div>
					<!--Start Tabcontent 1 -->
					<div class="mainF">
						<?php
						switch ($tab) {
							case 1:
								if ($ROOT->R['page1']) {
									echo '';
								}else {
									include 'temp/plu-in/qxb.php';
								}
								
								break;
							case 2:
								if ($ROOT->R['page2']) {
									include 'temp/plu-in/exm.php';
                                    //include '../index.php/Npfe/Xiadan';
								}else {
									include 'temp/plu-in/qxb.php';
								}
								break;
							case 3:
								if ($ROOT->R['page3']) {
									include 'temp/plu-in/gdcl.php';
								}else {
									include 'temp/plu-in/qxb.php';
								}
								break;
							case 4:
								if ($ROOT->R['page4']) {
									include 'temp/plu-in/jhcl.php';
								}else {
									include 'temp/plu-in/qxb.php';
								}
								break;
							case 5:
								if ($ROOT->R['page5']) {
									include 'temp/plu-in/qc.php';
								}else {
									include 'temp/plu-in/qxb.php';
								}
								break;
							case 6:
								echo "正在加載中，如果您很久都沒在看到頁面，可能此功能還在建設中或維護中！";
								break;
							case 7:
								if ($ROOT->R['npfe']) {
									include 'tpl/npfe.main.html';
								}else {
									include 'temp/plu-in/qxb.php';
								}
								break;
							default:
								include 'temp/plu-in/qxb.php';
								break;
						}
						?>
					</div>
					<!--End Tabcontent 5-->
				</div>
		</div>
	</div>
	<div id="mainwindow"></div>
	<div id="maindlg"></div>
	<?php
echo $ROOT->
	rooterrorhtml();
?>
</body>
</html>